package com.kaiwu.tc.persistence.mapping;

/**
 * @author Captain
 * @date 2021/1/31
 **/
public enum SqlCommandType {
    INSERT, UPDATE, DELETE, SELECT;

    public SqlCommandType getSqlCommandType(String nodeName){
        for (SqlCommandType sqlCommandType : SqlCommandType.values()){
            if (sqlCommandType.name().equalsIgnoreCase(nodeName)){
                return sqlCommandType;
            }
        }
        throw new IllegalArgumentException("error SqlCommandType");
    }

}
